﻿using System.Collections.Generic;
using System.Web.Mvc;
using ControleRepresentante.Logic.Models;
using Telerik.Web.Mvc.UI.Fluent;

namespace WebSite.ViewModels.DetailsViewModels.DetailsGridViewModels
{
    public class ClienteEnderecoDetailsGridViewModel : EnderecoDetailsGridViewModel<ClienteEndereco>
    {
        public ClienteEnderecoDetailsGridViewModel(HtmlHelper htmlHelper, IEnumerable<ClienteEndereco> models)
            : base(htmlHelper, models)
        {
        }

        protected override void Columns(GridColumnFactory<ClienteEndereco> configurator)
        {
            base.Columns(configurator);
            configurator.Bound(endereco => endereco.EnderecoCobranca);
            configurator.Bound(endereco => endereco.EnderecoEntrega);
        }
    }
}